'use strict'
import Layout from '../views/layout/Layout'
const _import = require('./_import_' + process.env.NODE_ENV)

export default [
  {
    path: '/finance',
    component: Layout,
    redirect: '/finance/trade',
    meta: { title: '资金管理' },
    children: [
      // {
      //   path: '',
      //   component: _import('finance/index'),
      //   name: 'finance',
      //   meta: { title: '资金管理' }
      // }
      {
        path: 'trade',
        component: _import('finance/tradeList'),
        name: 'tradeFinance',
        meta: { title: '交易明细' }
      },
      {
        path: 'freight',
        component: _import('finance/freightList'),
        name: 'freightFinance',
        meta: { title: '运费明细' }
      }
    ]
  },
  {
    path: '/account',
    component: Layout,
    redirect: '/account/info',
    meta: { title: '账号管理' },
    children: [
      {
        path: 'info',
        component: _import('account/index'),
        name: 'info',
        meta: { title: '账号信息' }
      },
      {
        path: 'resetPwd',
        component: _import('account/resetPwd'),
        name: 'resetPwd',
        meta: { title: '修改密码' }
      },
      {
        path: 'warehouse',
        component: _import('account/warehouse'),
        name: 'warehouse',
        meta: { title: '仓库信息设置' }
      },
      {
        path: 'freight',
        component: _import('account/freight'),
        name: 'freight',
        meta: { title: '运费模版管理' }
      },
      // {
      //   path: 'address',
      //   component: _import('account/address'),
      //   name: 'address',
      //   meta: { title: '运费模版管理' }
      // },
      {
        path: 'addfre',
        component: _import('account/freightAdd'),
        name: 'addfre',
        meta: { title: '新增运费模板' },
        hidden: true
      }
    ]
  }
]
